package com.ruoyi.customer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户跟进记录对象 crm_customer_record
 * 
 * @author hct
 * @date 2022-04-14
 */
public class CrmCustomerRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 线索id */
    @Excel(name = "客户id")
    private Integer customerId;

    /** 跟进记录 */
    @Excel(name = "跟进记录")
    private String record;

    /** 图片集合 */
    @Excel(name = "图片集合")
    private String imgs;

    /** 跟进人 */
    @Excel(name = "跟进人")
    private Long userId;

    /** 意向程度 0不知道 1无 2一般 3强 */
    @Excel(name = "意向程度 0不知道 1无 2一般 3强")
    private Long intentionState;

    /** 跟进方式  1客户上门 2电话 3短信  4邮件 5客户来电 6主动电访 */
    @Excel(name = "跟进方式  1客户上门 2电话 3短信  4邮件 5客户来电 6主动电访")
    private Long investigationMode;

    /** 计划时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planTime;

    /** 计划记录 */
    @Excel(name = "计划记录")
    private String planRecord;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCustomerId(Integer customerId) 
    {
        this.customerId = customerId;
    }

    public Integer getCustomerId() 
    {
        return customerId;
    }
    public void setRecord(String record) 
    {
        this.record = record;
    }

    public String getRecord() 
    {
        return record;
    }
    public void setImgs(String imgs) 
    {
        this.imgs = imgs;
    }

    public String getImgs() 
    {
        return imgs;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setIntentionState(Long intentionState) 
    {
        this.intentionState = intentionState;
    }

    public Long getIntentionState() 
    {
        return intentionState;
    }
    public void setInvestigationMode(Long investigationMode) 
    {
        this.investigationMode = investigationMode;
    }

    public Long getInvestigationMode() 
    {
        return investigationMode;
    }
    public void setPlanTime(Date planTime) 
    {
        this.planTime = planTime;
    }

    public Date getPlanTime() 
    {
        return planTime;
    }
    public void setPlanRecord(String planRecord) 
    {
        this.planRecord = planRecord;
    }

    public String getPlanRecord() 
    {
        return planRecord;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("customerId", getCustomerId())
            .append("record", getRecord())
            .append("createTime", getCreateTime())
            .append("imgs", getImgs())
            .append("userId", getUserId())
            .append("intentionState", getIntentionState())
            .append("investigationMode", getInvestigationMode())
            .append("planTime", getPlanTime())
            .append("planRecord", getPlanRecord())
            .toString();
    }
}
